package com.lcg.learn.factory.factoryMethod;

import com.lcg.learn.factory.factoryMethod.model.JuiceModel;

/**
 * Created by Tom.
 */
public class FactoryMethodTest {

    public static void main(String[] args) {
//
//        ICourseFactory factory = new PythonCourseFactory();
//        ICourse course = factory.create();
//        course.record();
//
//        factory = new JavaCourseFactory();
//        course = factory.create();
//        course.record();

        JuiceFactory juiceFactory = new AppleJuiceFactory();
        JuiceModel apple = juiceFactory.makeJuice();
        apple.makeJuice();

        juiceFactory = new OrangeJuiceFactory();
        JuiceModel orange = juiceFactory.makeJuice();
        orange.makeJuice();


    }

}
